package com.prs.crm.domain.document;
/**
 * @author Administrator yanghao
 * @version 2012-5-17 9:45:29 发文模板
 */
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import bsh.commands.dir;

import com.prs.crm.domain.BaseEntity;
@Entity
@Table(name="docu_drafttype")
public class DraftType  extends BaseEntity{

	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer id;
	private String name;
	@ManyToOne
	private DraftFormworkType draftFormworkType;
	private String moudleState;//模板状态
	private String attachSet;//附加设置
	private String flowState;//流程状态
	private String usePerson;//使用人
	private String usePersonId;
	private String monitoringPerson;//表单监控人员
	private String monitoringPersonId;
	private String moudlePerson;//模版维护人员
	private String moudlePersonId;
	private String houtai;//后台触发程序
	
	private String flowName;
	private String remark;
	private String buildWay;
	private Boolean isAttach;
	private Boolean isUpdateFLow;
	private String flowSet;
	@ManyToOne
	private DraftFlow draftFlow;
	@ManyToOne
	private DraftFlowType draftFlowType;
	
	@ManyToOne(cascade={CascadeType.ALL})
	private NumberSet numberSet;
	private String useState;
	private String upState;
	public String getUseState() {
		return useState;
	}
	public void setUseState(String useState) {
		this.useState = useState;
	}
	public String getUpState() {
		return upState;
	}
	public void setUpState(String upState) {
		this.upState = upState;
	}
	@OneToMany(mappedBy="draftType",fetch=FetchType.LAZY)
	private Set<Draft> draft;
	public Set<Draft> getDraft() {
		return draft;
	}
	public void setDraft(Set<Draft> draft) {
		this.draft = draft;
	}
	public String getHoutai() {
		return houtai;
	}
	public void setHoutai(String houtai) {
		this.houtai = houtai;
	}
	public NumberSet getNumberSet() {
		return numberSet;
	}
	public void setNumberSet(NumberSet numberSet) {
		this.numberSet = numberSet;
	}
	public DraftFlowType getDraftFlowType() {
		return draftFlowType;
	}
	public void setDraftFlowType(DraftFlowType draftFlowType) {
		this.draftFlowType = draftFlowType;
	}
	public String getFlowName() {
		return flowName;
	}
	public void setFlowName(String flowName) {
		this.flowName = flowName;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getBuildWay() {
		return buildWay;
	}
	public void setBuildWay(String buildWay) {
		this.buildWay = buildWay;
	}
	public Boolean getIsAttach() {
		return isAttach;
	}
	public void setIsAttach(Boolean isAttach) {
		this.isAttach = isAttach;
	}
	public Boolean getIsUpdateFLow() {
		return isUpdateFLow;
	}
	public void setIsUpdateFLow(Boolean isUpdateFLow) {
		this.isUpdateFLow = isUpdateFLow;
	}
	public String getFlowSet() {
		return flowSet;
	}
	public void setFlowSet(String flowSet) {
		this.flowSet = flowSet;
	}
	public DraftFlow getDraftFlow() {
		return draftFlow;
	}
	public void setDraftFlow(DraftFlow draftFlow) {
		this.draftFlow = draftFlow;
	}
	public String getMoudleState() {
		return moudleState;
	}
	public void setMoudleState(String moudleState) {
		this.moudleState = moudleState;
	}
	public String getAttachSet() {
		return attachSet;
	}
	public void setAttachSet(String attachSet) {
		this.attachSet = attachSet;
	}
	public String getFlowState() {
		return flowState;
	}
	public void setFlowState(String flowState) {
		this.flowState = flowState;
	}
	public String getUsePerson() {
		return usePerson;
	}
	public void setUsePerson(String usePerson) {
		this.usePerson = usePerson;
	}
	public String getUsePersonId() {
		return usePersonId;
	}
	public void setUsePersonId(String usePersonId) {
		this.usePersonId = usePersonId;
	}
	public String getMonitoringPerson() {
		return monitoringPerson;
	}
	public void setMonitoringPerson(String monitoringPerson) {
		this.monitoringPerson = monitoringPerson;
	}
	public String getMonitoringPersonId() {
		return monitoringPersonId;
	}
	public void setMonitoringPersonId(String monitoringPersonId) {
		this.monitoringPersonId = monitoringPersonId;
	}
	public String getMoudlePerson() {
		return moudlePerson;
	}
	public void setMoudlePerson(String moudlePerson) {
		this.moudlePerson = moudlePerson;
	}
	public String getMoudlePersonId() {
		return moudlePersonId;
	}
	public void setMoudlePersonId(String moudlePersonId) {
		this.moudlePersonId = moudlePersonId;
	}
	public DraftFormworkType getDraftFormworkType() {
		return draftFormworkType;
	}
	public void setDraftFormworkType(DraftFormworkType draftFormworkType) {
		this.draftFormworkType = draftFormworkType;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
}
